﻿
CREATE FUNCTION [dbo].[IsContInRetValoare] (@Cont TipCont, @Multime varchar(2000),@valoare DECIMAL(20,2))  
RETURNS DECIMAL(20,2) AS  
BEGIN 
DECLARE @ret int
SET @ret = CHARINDEX(LTRIM(RTRIM(@Cont)), @Multime)
IF @ret=0
	return 0
return @valoare
END